package com.bjwl.web.contrlller.branchstore;

import com.bjwl.pojo.Customer;
import com.bjwl.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Author: czc
 * @Date:Create：in 2020/4/13 11:22
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Controller
@RequestMapping("/branchStore")
public class CustomerController {

    @Autowired
    private CustomerService customerService;

    //查询所有客户
    @RequestMapping("bSFindAllCustomer")
    public void bSFindAllCustomer(HttpSession httpSession){
        List<Customer> customerList = customerService.findAllCustomer();
        httpSession.setAttribute("customerList",customerList);

    }

}
